package xinxin.com.PrototypePattern;

import xinxin.com.PrototypePattern.Resume.Resume;

public class PrototypePattern {
    public static void main(String[] args) {
        Resume a = new Resume("大鸟");
        a.SetPersonalInfo("男", "29");
        a.SetWorkExperience("1998-2000", "XX公司");

        Resume b = (Resume) a.Clone();
        b.SetPersonalInfo("女", "18");
        b.SetWorkExperience("1998-2006", "YY公司");

        Resume c = (Resume) a.Clone();
        c.SetPersonalInfo("男", "30");
        c.SetWorkExperience("1998-2003", "ZZ公司");

        a.Display();
        b.Display();
        c.Display();
    }
}
